using UnityEngine;

public class ToBattleRoom : MonoBehaviour
{
    private MemoryModel m_MemoryModel;
    
    private void Start()
    {
        m_MemoryModel = ModelContainer.Instance.GetModel<MemoryModel>();
    }
    
    private void OnTriggerEnter2D(Collider2D collision)
    {
        if (collision.tag == "Player")
        {
            m_MemoryModel.PlayerAttr = collision.GetComponent<Symbol>().GetCharacter().m_Attr as PlayerAttribute;
            SceneModelCommand.Instance.LoadScene(SceneName.BattleScene);
        }
    }
}
